<?php

namespace App\Http\Requests\Backend\Auth;

use App\Http\Requests\BaseRequest;

class AdminRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 表单验证.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'username' => 'required|max:20',
			'nickname' => '|max:50',
			'password' => 'max:32',
			'salt' => '|max:30',
			'avatar' => '|max:100',
			'email' => '|max:100',
			'mobile' => '|max:15',
			'status' => 'required|integer',
			'logintime' => '|integer',
			'group_id' => 'required|integer'

        ];
    }
}
